<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link href="../../static/bootstrap/css/bootstrap.min.css"
	rel="stylesheet">
<link rel="stylesheet" href="../../static/css/sb-admin-2.css">
<link href="../../static/prettify/github-v2.min.css" rel="stylesheet">
<!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries -->
<!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
<!--[if lt IE 9]>
      <script src="../../static/js/html5shiv.min.js"></script>
      <script src="../../static/js/respond.min.js"></script>
    <![endif]-->
<style>
body {
	word-wrap: break-word;
}
</style>
</head>
<body onload="prettyPrint();">
	<div id="nav"></div>
	<div id="page-wrapper" style="padding: 10px">
		<div class="container-fluid">
			<div class="row">
				<div class="col-md-12">

					<ol class="breadcrumb">
						<li><a href="../tag.html">标签</a></li>
						<li><a href="index.html">数据标签</a></li>
						<li><a href="articleArchive.html">文章归档标签</a></li>
					</ol>

					<h2>文章归档标签</h2>
					<h3>默认dataName</h3>
					<p>archives</p>


					<h3>可接受的标签属性</h3>
					<div class="table-responsive">
						<table class="table">
							<thead>
								<tr>
									<th>属性名</th>
									<th class="col-md-3">类型</th>
									<th>是否必须</th>
									<th>默认</th>
									<th class="col-md-6">说明</th>
								</tr>
							</thead>
							<tbody>
								<tr>
									<td>mode</td>
									<td>enum</td>
									<td>否</td>
									<td>YMD</td>
									<td>归档模式，为Y(按年归档)|YM(按年月归档)|YMD(按年月日归档)其中之一</td>
								</tr>
							</tbody>
						</table>
					</div>

					<h3>结果返回</h3>
					<p>
						返回一个<b>不为null</b>的ArticleArchiveTree，ArticleArchiveTree可访问属性描述如下:
					</p>
					<div class="table-responsive">
						<table class="table">
							<tr>
								<th>属性名</th>
								<th>属性类型</th>
								<th>是否可能为null</th>
								<th>说明</th>
							</tr>
							<tr>
								<td>nodes</td>
								<td>List&lt;DateNode&gt;</td>
								<td>否</td>
								<td>根节点</td>
							</tr>
						</table>
					</div>

					<p>DateNode可访问属性如下：</p>
					<div class="table-responsive">
						<table class="table">
							<tr>
								<th>属性名</th>
								<th>属性类型</th>
								<th>是否可能为null</th>
								<th>说明</th>
							</tr>
							<tr>
								<td>text</td>
								<td>Message</td>
								<td>否</td>
								<td>节点本文内容，通过${messages.getMessage(message)}输出</td>
							</tr>
							<tr>
								<td>nodes</td>
								<td>List&lt;Object&gt;</td>
								<td>否</td>
								<td>子节点，根据归档模式的不同，子节点的类型也不同，在YMD模式下，树被分为4层，前三层为DateNode,最后一层为文章节点,
									例如：<pre>2016年(DateNode)
  12月(DateNode)
    10日(DateNode)
      [Article1](文章节点)</pre> 在YM模式下，树有三层，前两层为DateNode，第三层为文章节点，例如： <pre>2016年(DateNode)
  12月(DateNode)
    [Article1](文章节点)</pre> 在Y下，树有两层，第一层为DateNode，第二层为文章节点，例如： <pre>2016年(DateNode)
  [Article1](文章节点)</pre>
								</td>
							</tr>
						</table>
					</div>

					<p>文章节点可访问属性如下：</p>
					<div class="table-responsive">
						<table class="table">
							<tr>
								<th>属性名</th>
								<th>属性类型</th>
								<th>是否可能为null</th>
								<th>说明</th>
							</tr>
							<tr>
								<td>id</td>
								<td>int</td>
								<td>否</td>
								<td>文章ID</td>
							</tr>
							<tr>
								<td>pubDate</td>
								<td>Timestamp</td>
								<td>否</td>
								<td>文章发布日期</td>
							</tr>
							<tr>
								<td>lastModifyDate</td>
								<td>Timestamp</td>
								<td>是</td>
								<td>文章最后修改日期</td>
							</tr>
							<tr>
								<td>title</td>
								<td>string</td>
								<td>否</td>
								<td>文章标题</td>
							</tr>
							<tr>
								<td>isPrivate</td>
								<td>boolean</td>
								<td>否</td>
								<td>是否是私人文章</td>
							</tr>
							<tr>
								<td>alias</td>
								<td>String</td>
								<td>是</td>
								<td>文章别名</td>
							</tr>
							<tr>
								<td>lockId</td>
								<td>String</td>
								<td>是</td>
								<td>锁ID</td>
							</tr>
							<tr>
								<td>space</td>
								<td>Space</td>
								<td>否</td>
								<td>空间</td>
							</tr>
							<tr>
								<td colspan="4">
									<table class="table table-bordered">
										<caption>空间可访问属性如下</caption>
										<tr>
											<th>属性名</th>
											<th>属性类型</th>
											<th>是否可能为null</th>
											<th>说明</th>
										</tr>
										<tr>
											<td>alias</td>
											<td>string</td>
											<td>否</td>
											<td>空间别名</td>
										</tr>
										<tr>
											<td>isPrivate</td>
											<td>boolean</td>
											<td>否</td>
											<td>是否是私有空间</td>
										</tr>
										<tr>
											<td>lockId</td>
											<td>String</td>
											<td>是</td>
											<td>锁ID</td>
										</tr>
									</table>
								</td>
							</tr>

						</table>
					</div>
				</div>
			</div>
		</div>
	</div>
</body>

<script type="text/javascript" src="../../static/jquery/jquery.min.js"></script>
<script type="text/javascript"
	src="../../static/bootstrap/js/bootstrap.min.js"></script>
<script type="text/javascript" src="../../static/prettify/prettify.js"></script>
<script>
	$(function() {
		$("#nav").load("dataTagNav.html");
	});
</script>
</html>
